<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/



Route::group(['prefix' => 'class', 'namespace' => 'ClassEr'],function () {
    Route::post('/list', [
        'uses'  => 'ClassController@list',
        'name'  => '【班级：列表】']);
    Route::post('/add', [
        'uses'  => 'ClassController@add',
        'name'  => '【班级：新增】']);
    Route::post('/edit', [
        'uses'  => 'ClassController@edit',
        'name'  => '【班级：编辑】']);
    Route::post('/del', [
        'uses'  => 'ClassController@del',
        'name'  => '【班级：删除】']);

});

Route::group(['prefix' => 'student', 'namespace' => 'Student'],function () {
    Route::post('/list', [
        'uses'  => 'StudentController@list',
        'name'  => '【学生：列表】']);
    Route::post('/add', [
        'uses'  => 'StudentController@add',
        'name'  => '【学生：新增】']);
    Route::post('/edit', [
        'uses'  => 'StudentController@edit',
        'name'  => '【学生：编辑】']);
    Route::post('/del', [
        'uses'  => 'StudentController@del',
        'name'  => '【学生：删除】']);
    Route::post('/info', [
        'uses'  => 'StudentController@info',
        'name'  => '【学生：详情】']);

});
